package com.brayan.webapp.controller.general;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.inject.Inject;

import org.apache.log4j.Logger;

import com.brayan.webapp.model.general.geoinfo.GeoInfo;
import com.brayan.webapp.service.general.geoinfo.GeoIPBean;

@ManagedBean
@RequestScoped
public class GeoInfoController {
	
	@Inject
	transient private Logger LOGGER; 
	
	@Inject
	private GeoIPBean geoIpService;
	
	public GeoInfo getGeoInfoByIp(String ipAddress){
		GeoInfo geoInfo = geoIpService.getGeoInfoByIp(ipAddress);
		return geoInfo;
	}	
	
}
